;; add gnu server
(if (memq system-type '(windows-nt ms-dos))
    (and (setenv "GNUSERV_SHOW_EMACS" "1") ;force gnuserv to show emacs  window, always
	 (require 'gnuserv)
	 (gnuserv-start)
	 (setq gnuserv-frame (selected-frame))
	 ))